package com.neusoft.classCH6;

public class Leader extends Student {
	//属性
	//title
	String stuTitle;
	
	
	//行为
	private static void printpp() {
		System.out.println("这里调用了一个private方法");
	}
	
	
	public void collectHW() {
		printpp();
		System.out.println("收作业");
	}
	
	//组织活动
	public void planActivity() {
		System.out.println("计划活动");
	}
	
	/**
	 * 输出学生的信息
	 */
	public void printStuInfo() {
		
		System.out.println("姓名" + getName());
		System.out.println("学号" + getStuNo());
		System.out.println("成绩" + getScore());
		System.out.println("班委工作" + stuTitle);
		
	}

	public String getStuTitle() {
		return stuTitle;
	}

	public void setStuTitle(String stuTitle) {
		this.stuTitle = stuTitle;
	}

	public static void main(String[] args) {
		
		//调用protected方法
		Student stu1 = new Student();
		stu1.priva1();
		
	}
	
	
}
